@lightFont: #95989A;
@btnBd: #EBE8E8;
// icon颜色
@c_icon : #C7C6C6;
@c_icon1 : #D9D7D7;
// 分割线颜色
@c_split : #EBE8E8;
//背景色
@c_bg : #F9F9F9;
//top 标题条
@c_red : #ec292d;
//奖号／提示文字
@c_red1 : #F25E58;
//状态提示
@c_red2 : #FFCAC6;
//奖号配色
@c_blue : #4593EF;
.ct_btnBorder(@bdColor, @brP) {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  border: 1px solid @bdColor;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: 200%;
  height: 200%;
  -webkit-transform: scale(0.5);
  transform: scale(0.5);
  -webkit-transform-origin: left top;
  transform-origin: left top;
  border-radius: @brP;
}

.borderLeft(@bdColor) {
  position: relative;
  &:before {
    content: '';
    position: absolute;
    left: 0;
    background: @bdColor;
    width: 1px;
    height: 100%;
    -webkit-transform: scaleX(0.5);
    transform: scaleX(0.5);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
  }
}

.borderTop(@bdColor) {
  position: relative;
  &:before {
    content: '';
    position: absolute;
    left: 0;
    background: @bdColor;
    height: 1px;
    width: 100%;
    -webkit-transform: scaleY(0.5);
    transform: scaleY(0.5);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
  }
}

.borderBottom(@bdColor) {
  position: relative;
  &:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    background: @bdColor;
    height: 1px;
    width: 100%;
    -webkit-transform: scaleY(0.5);
    transform: scaleY(0.5);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
  }
}

.border4(@bdColor, @brP) {
  position: relative;
  &:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    border: 1px solid @bdColor;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    width: 200%;
    height: 200%;
    -webkit-transform: scale(0.5);
    transform: scale(0.5);
    -webkit-transform-origin: left top;
    transform-origin: left top;
    border-radius: @brP;
  }
}

.borderRight(@bdColor) {
  position: relative;
  &:after {
    content: '';
    position: absolute;
    right: 0;
    background: @bdColor;
    width: 1px;
    height: 100%;
    -webkit-transform: scaleX(0.5);
    transform: scaleX(0.5);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
  }
}

// @media screen and (-webkit-device-pixel-ratio: 2) {
.pxTop(@bgc) {
  border: 0;
  background-position: left top;
  background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0.5, @bgc), color-stop(0.5, @bgc));
  background-repeat: repeat-x;
  -webkit-background-size: 100% 1px;
}

.pxBottom(@bgc) {
  border: none;
  background-position: left bottom;
  background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0.5, @bgc), color-stop(0.5, @bgc));
  background-repeat: repeat-x;
  -webkit-background-size: 100% 1px;
}

.pxTop(@bgc) {
  background-position: left top;
  background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0.5, @bgc), color-stop(0.5, @bgc));
  background-repeat: repeat-x;
  -webkit-background-size: 100% 1px;
}

.pxLeft(@bgc) {
  background-image: -webkit-linear-gradient(left, transparent 50%, @bgc 50%);
  background-size: 1px 100%;
  background-repeat: no-repeat;
  background-position: left;
}

.pxRight(@bgc) {
  background-image: -webkit-linear-gradient(left, transparent 50%, @bgc 50%);
  background-size: 1px 100%;
  background-repeat: no-repeat;
  background-position: right;
}

.px4(@bgc) {
  background: linear-gradient(0, transparent 50%, @bgc 50%) no-repeat, linear-gradient(-90deg, transparent 50%, @bgc 50%) no-repeat, linear-gradient(-180deg, transparent 50%, @bgc 50%) no-repeat, linear-gradient(-270deg, transparent 50%, @bgc 50%) no-repeat;
  background-size: 100% 1px, 1px 100%, 100% 1px, 1px 100%;
  background-position: left top, right top, right bottom, left bottom;
}

.px_lr(@bgc) {
  background: linear-gradient(0, transparent 50%, @bgc 50%) no-repeat, linear-gradient(-90deg, transparent 50%, @bgc 50%) no-repeat, linear-gradient(-180deg, transparent 50%, @bgc 50%) no-repeat, linear-gradient(-270deg, transparent 50%, @bgc 50%) no-repeat;
  background-size: 100% 0px, 1px 100%, 100% 0px, 1px 100%;
  background-position: left top, right top, right bottom, left bottom;
}

.px_rb(@bgc) {
  background: linear-gradient(0, transparent 50%, @bgc 50%) no-repeat, linear-gradient(-90deg, transparent 50%, @bgc 50%) no-repeat, linear-gradient(-180deg, transparent 50%, @bgc 50%) no-repeat, linear-gradient(-270deg, transparent 50%, @bgc 50%) no-repeat;
  background-size: 100% 0px, 1px 100%, 100% 1px, 0px 100%;
  background-position: left top, right top, right bottom, left bottom;
}

.px_r(@bgc) {
  background: linear-gradient(0, transparent 50%, @bgc 50%) no-repeat, linear-gradient(-90deg, transparent 50%, @bgc 50%) no-repeat, linear-gradient(-180deg, transparent 50%, @bgc 50%) no-repeat, linear-gradient(-270deg, transparent 50%, @bgc 50%) no-repeat;
  background-size: 100% 0px, 1px 100%, 100% 0px, 0px 100%;
  background-position: left top, right top, right bottom, left bottom;
}

.px_b(@bgc) {
  background: linear-gradient(0, transparent 50%, @bgc 50%) no-repeat, linear-gradient(-90deg, transparent 50%, @bgc 50%) no-repeat, linear-gradient(-180deg, transparent 50%, @bgc 50%) no-repeat, linear-gradient(-270deg, transparent 50%, @bgc 50%) no-repeat;
  background-size: 100% 0px, 0px 100%, 100% 1px, 0px 100%;
  background-position: left top, right top, right bottom, left bottom;
}

.px_t(@bgc) {
  background: linear-gradient(0, transparent 50%, @bgc 50%) no-repeat, linear-gradient(-90deg, transparent 50%, @bgc 50%) no-repeat, linear-gradient(-180deg, transparent 50%, @bgc 50%) no-repeat, linear-gradient(-270deg, transparent 50%, @bgc 50%) no-repeat;
  background-size: 100% 1px, 0px 100%, 100% 0px, 0px 100%;
  background-position: left top, right top, right bottom, left bottom;
}

.px_l(@bgc) {
  background: linear-gradient(0, transparent 50%, @bgc 50%) no-repeat, linear-gradient(-90deg, transparent 50%, @bgc 50%) no-repeat, linear-gradient(-180deg, transparent 50%, @bgc 50%) no-repeat, linear-gradient(-270deg, transparent 50%, @bgc 50%) no-repeat;
  background-size: 100% 0px, 0px 100%, 100% 0px, 1px 100%;
  background-position: left top, right top, right bottom, left bottom;
}

